package org.car.world.wx.api.AbstractFactory.service;

public class ShapeFactory extends AbstractFactory {

	@Override
	public Color getColor(String color) {
		return null;
	}

	@Override
	public Shape getShape(String shapetype) {
			if(shapetype == null){
				return null;
			}
			
			if(shapetype.equalsIgnoreCase("CIRCLE")){
				return new Circle();
			}else if(shapetype.equalsIgnoreCase("RECTANGLE")){
				return new Rectangle();
			}else if(shapetype.equalsIgnoreCase("SQUARE")){
				return new Square();
			}
			return null;
			
		}

	
	
}
